package com.open.capacity.common.util.skf;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

public class Struct_ECCPUBLICKEYBLOB extends Structure {
    /*
  typedef struct Struct_ECCPUBLICKEYBLOB{
  ULONG	BitLen;
  BYTE	XCoordinate[ECC_MAX_XCOORDINATE_BITS_LEN/8];
  BYTE	YCoordinate[ECC_MAX_YCOORDINATE_BITS_LEN/8];
  }ECCPUBLICKEYBLOB, *PECCPUBLICKEYBLOB;
  */
    public Long BitLen;
    public byte[] XCoordinate = new byte[64];
    public byte[] YCoordinate = new byte[64];

    public static class ByReference extends Struct_ECCPUBLICKEYBLOB implements Structure.ByReference {
    }

    public static class ByValue extends Struct_ECCPUBLICKEYBLOB implements Structure.ByValue {
    }

    public Long get_BitLen() {
        return BitLen;
    }

    @Override
    protected List getFieldOrder() {
        return Arrays.asList(new String[]{"BitLen", "XCoordinate", "YCoordinate"});
    }


}

